package com.lqg.bookLibrary.common.constant;

/**
 * 服务器相关参数
 * */
public class HostParam {

    /**
     * 存储文件主路径
     * */
    //public static final String MAIN_PATH = "/root/nginx_sharefile";  //linux
    //public static final String MAIN_PATH = "D:\\tomcat-server";  //windows
    public static final String MAIN_PATH = System.getProperty("user.dir") + "/file";

    /**
     * IP
     * */
    //public static final String HOST_IP = "139.196.243.215";
    public static final String HOST_IP = "localhost";

    /**
     * 文件访问端口
     * */
    public static final String FILE_PORT = "9001";


    /**
     * 文件访问前缀
     * */
    public static final String ACCESS_PREFIX = "/book";

    /**
     * 访问文件主路径
     * */
    public static final String ACCESS_PATH = "http://" +HOST_IP+":"+FILE_PORT+ACCESS_PREFIX;

}
